from pathlib import Path

path = Path('10_chapter_10_test\pi_million_digits.txt')
contents = path.read_text()

lines = contents.splitlines()
pi_string = ''
for line in lines:
    pi_string += line.lstrip()

birthday = input()

positions = []
start_index = 0
while True:
    index = pi_string.find(birthday, start_index)
    if index == -1:
        break
    positions.append(index)
    start_index = index + 1
print("生日出现的位置：", positions)